import request from '@/utils/request'

export function bugByDays(project_id, version_info, type) {
  return request({
    url: '/mantis_bug/bug_by_days/' + project_id + '/' + version_info + '/' + type,
    method: 'get'
  })
}
export function bugOfProject(data) {
  return request({
    url: '/mantis_bug/bug_of_project',
    method: 'post',
    data
  })
}
export function bugReopen() {
  return request({
    url: '/bug_reopen/bug_reopen_rate',
    method: 'get'
  })
}
export function bugReopenDetailed(bug_name) {
  return request({
    url: '/bug_reopen/bug_reopen_detailed/' + bug_name,
    method: 'get'
  })
}
export function bugOfHandler(data) {
  return request({
    url: '/mantis_bug/bug_of_handler',
    method: 'post',
    data
  })
}
export function bugDataLastWeek() {
  return request({
    url: '/mantis_bug/bug_data_last_week',
    method: 'get'
  })
}
export function bugTimeFinish(data) {
  return request({
    url: '/mantis_bug/bug_time_finish',
    method: 'post',
    data
  })
}
export function bugNotClosed(data) {
  return request({
    url: '/mantis_bug/bug_not_closed',
    method: 'post',
    data
  })
}
export function bugEMail(data) {
  return request({
    url: '/mantis_bug/bug_e_mail',
    method: 'post',
    data
  })
}

